    .text
    .globl main
main:

    #Inicio Prologo main
    addi $fp, $sp, 0
    addi $sp, $sp, -4
    #Fim Prologo main

    la $t0, _c
    lw $a0, 0($t0)
    li $v0, 1 
    syscall

    #Inicio Epilogo main
    li $v0, 10
    syscall
    #Fim Epilogo main

    .text
    .globl _p1
_p1:

    #Inicio Prologo _p1
    sw $t0, -16($fp)
    sw $t1, -20($fp)
    sw $t2, -24($fp)
    sw $t3, -28($fp)
    sw $t4, -32($fp)
    sw $t5, -36($fp)
    sw $t6, -40($fp)
    sw $t7, -44($fp)
    sw $fp, -48($fp)
    addi $fp, $sp, 0
    addi $sp, $sp, -52
    #Fim Prologo _p1

    li $t1, 10
    sw $t1, -4($fp)
    la $t2, _c
    li $t3, -4
    add $t4, $fp, $t3
    lw $t5, 0($t4)
    sw $t5, 0($t2)

    #Inicio Epilogo _p1
    addi $sp, $fp, 0
    lw $t0, -8($fp)
    lw $t1, -12($fp)
    lw $t2, -16($fp)
    lw $t3, -20($fp)
    lw $t4, -24($fp)
    lw $t5, -28($fp)
    lw $t6, -32($fp)
    lw $t7, -36($fp)
    lw $fp, -40($fp)
    jr $ra
    #Fim Epilogo _p1

    .data
    .globl _c
_c:
    .word 0 
